<?php

// Start of PECL libevent v.0.0.4

// Libevent documentation:
// http://www.wangafu.net/~nickm/libevent-book/

// PHP Libevent extension documentation:
// http://php.net/libevent


// Event flags

/**
 * This flag indicates an event that becomes active after a timeout elapses.
 *
 * The EV_TIMEOUT flag is ignored when constructing an event: you
 * can either set a timeout when you add the event, or not.  It is
 * set in the 'what' argument to the callback function when a timeout
 * has occurred.
 */
define('EV_TIMEOUT', 1);

/**
 * This flag indicates an event that becomes active when the provided
 * file descriptor is ready for reading.
 */
define('EV_READ', 2);

/**
 * This flag indicates an event that becomes active when the provided
 * file descriptor is ready for writing.
 */
define('EV_WRITE', 4);

/**
 * Used to implement signal detection.
 */
define('EV_SIGNAL', 8);

/**
 * Indicates that the event is persistent.
 *
 * By default, whenever a pending event becomes active
 * (because its fd is ready to read or write, or because its timeout expires),
 * it becomes non-pending right before its callback is executed.
 * Thus, if you want to make the event pending again, you can call event_add()
 * on it again from inside the callback function.
 *
 * If the EV_PERSIST flag is set on an event, however, the event is persistent.
 * This means that event remains pending even when its callback is activated.
 * If you want to make it non-pending from within its callback, you can call
 * event_del() on it.
 *
 * The timeout on a persistent event resets whenever the event's callback runs.
 * Thus, if you have an event with flags EV_READ|EV_PERSIST and a timeout of five
 * seconds, the event will become active:
 *
 * Whenever the socket is ready for reading.
 *
 * Whenever five seconds have passed since the event last became active.
 */
define('EV_PERSIST', 16);


// Event loop modes

/**
 * Event base loop mode.
 * Starts only one iteration of loop.
 *
 * @see event_base_loop
 */
define('EVLOOP_ONCE', 1);

/**
 * Event base loop mode.
 * Not wait for events to trigger, only check whether
 * any events are ready to trigger immediately.
 *
 * @see event_base_loop
 */
define('EVLOOP_NONBLOCK', 2);


// Buffered event error codes (second argument in buffer's error-callback)

/**
 * An event occured during a read operation on the
 * bufferevent. See the other flags for which event it was.
 */
define('EVBUFFER_READ', 1);

/**
 * An event occured during a write operation on the bufferevent.
 * See the other flags for which event it was.
 */
define('EVBUFFER_WRITE', 2);

/**
 * We finished a requested connection on the bufferevent.
 */
define('EVBUFFER_EOF', 16);

/**
 * An error occurred during a bufferevent operation. For more information
 * on what the error was, call {@link socket_strerror}().
 */
define('EVBUFFER_ERROR', 32);

/**
 * A timeout expired on the bufferevent.
 */
define('EVBUFFER_TIMEOUT', 64);




/**
*<div id="function.event-base-new" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_base_new</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_base_new</span> &mdash; <span class="dc-title">Create and initialize new event base</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-base-new-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">resource</span> <span class="methodname" style="color:#CC7832"><strong>event_base_new</strong></span>     ( <span class="methodparam">void</span>    )</div>    <p class="para rdfs-comment">    Returns new event base, which can be used later in <span class="function">{@link event_base_set()}</span>,     <span class="function">{@link event_base_loop()}</span> and other functions.    </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-base-new-parameters">   <h3 class="title">参数</h3>   <span>此函数没有参数。</span>   <p class="para">   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-base-new-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_base_new()</strong></span> returns valid event base resource on    success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return resource|bool returns valid event base resource on success or FALSE on error.*/
function event_base_new(){}

/**
*<div id="function.event-base-free" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_base_free</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_base_free</span> &mdash; <span class="dc-title">Destroy event base</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-base-free-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>event_base_free</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event_base</span></span>    )</div>    <p class="para rdfs-comment">    Destroys the specified <span class="parameter" style="color:#2EACF9">event_base</span> and frees all the    resources associated. Note that it&#039;s not possible to destroy an event base    with events attached to it.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-base-free-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event_base</span></dt>       <dd>        <p class="para">        Valid event base resource.       </p>      </dd>          </dl>    </span>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return void*/
function event_base_free($event_base) {}

/**
*<div id="function.event-base-loop" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_base_loop</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_base_loop</span> &mdash; <span class="dc-title">Handle events</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-base-loop-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">int</span> <span class="methodname" style="color:#CC7832"><strong>event_base_loop</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event_base</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$flags</span><span class="initializer"> = 0</span></span>   ] )</div>    <p class="para rdfs-comment">    Starts event loop for the specified event base.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-base-loop-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event_base</span></dt>       <dd>        <p class="para">        Valid event base resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">flags</span></dt>       <dd>        <p class="para">        Optional parameter, which can take any combination of         <strong><span>EVLOOP_ONCE</span></strong> and <strong><span>EVLOOP_NONBLOCK</span></strong>.        </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-base-loop-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_base_loop()</strong></span> returns 0 on success, -1 on error and    1 if no events were registered.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return int <p>*/
function event_base_loop($event_base, $flags = null) {}

/**
*<div id="function.event-base-loopbreak" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_base_loopbreak</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_base_loopbreak</span> &mdash; <span class="dc-title">Abort event loop</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-base-loopbreak-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_base_loopbreak</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event_base</span></span>    )</div>    <p class="para rdfs-comment">    Abort the active event loop immediately. The behaviour is similar to    <em>break</em> statement.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-base-loopbreak-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event_base</span></dt>       <dd>        <p class="para">        Valid event base resource.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-base-loopbreak-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_base_loopbreak()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_base_loopbreak($event_base) {}

/**
*<div id="function.event-base-loopexit" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_base_loopexit</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_base_loopexit</span> &mdash; <span class="dc-title">Exit loop after a time</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-base-loopexit-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_base_loopexit</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event_base</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$timeout</span><span class="initializer"> = -1</span></span>   ] )</div>    <p class="para rdfs-comment">    The next event loop iteration after the given timer expires will complete    normally, then exit without blocking for events again.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-base-loopexit-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event_base</span></dt>       <dd>        <p class="para">        Valid event base resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">timeout</span></dt>       <dd>        <p class="para">        Optional timeout parameter (in microseconds).       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-base-loopexit-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_base_loopexit()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_base_loopexit($event_base, $timeout = -1) {}

/**
*<div id="function.event-base-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_base_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_base_set</span> &mdash; <span class="dc-title">Associate event base with an event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-base-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_base_set</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event_base</span></span>    )</div>    <p class="para rdfs-comment">    Associates the <span class="parameter" style="color:#2EACF9">event_base</span> with the    <span class="parameter" style="color:#2EACF9">event</span>.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-base-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event</span></dt>       <dd>        <p class="para">        Valid event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">event_base</span></dt>       <dd>        <p class="para">        Valid event base resource.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-base-set-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_base_set()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_base_set($event, $base) {}

/**
*<div id="function.event-base-priority-init" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_base_priority_init</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.2)</p><p class="refpurpose"><span class="refname">event_base_priority_init</span> &mdash; <span class="dc-title">Set the number of event priority levels</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-base-priority-init-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_base_priority_init</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event_base</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$npriorities</span></span>    )</div>    <p class="para rdfs-comment">    Sets the number of different event priority levels.    </p>   <p class="para">    By default all events are scheduled with the same priority    (<span class="parameter" style="color:#2EACF9">npriorities</span>/2).     Using <span class="function"><strong style="color:#CC7832">event_base_priority_init()</strong></span> you can change the number     of event priority levels and then set a desired priority for each event.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-base-priority-init-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event_base</span></dt>       <dd>        <p class="para">        Valid event base resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">npriorities</span></dt>       <dd>        <p class="para">        The number of event priority levels.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-base-priority-init-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_base_priority_init()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_base_priority_init($event_base, $npriorities) {}


/**
*<div id="function.event-new" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_new</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_new</span> &mdash; <span class="dc-title">Create new event</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-new-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">resource</span> <span class="methodname" style="color:#CC7832"><strong>event_new</strong></span>     ( <span class="methodparam">void</span>    )</div>    <p class="para rdfs-comment">    Creates and returns a new event resource.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-new-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_new()</strong></span> returns a new event resource on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return resource|bool returns a new event resource on success or FALSE on error.*/
function event_new() {}

/**
*<div id="function.event-free" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_free</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_free</span> &mdash; <span class="dc-title">Free event resource</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-free-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/event.free.php" class="methodname" style="color:#CC7832">event_free</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event</span></span>    )</div>    <p class="para rdfs-comment">    Frees previously created event resource.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-free-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event</span></dt>       <dd>        <p class="para">        Valid event resource.       </p>      </dd>          </dl>    </span>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return void*/
function event_free($event) {}

/**
*<div id="function.event-add" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_add</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_add</span> &mdash; <span class="dc-title">Add an event to the set of monitored events</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-add-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/event.add.php" class="methodname" style="color:#CC7832">event_add</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$timeout</span><span class="initializer"> = -1</span></span>   ] )</div>    <p class="para rdfs-comment">    <span class="function"><a href="http://php.net/manual/zh/event.add.php" class="function">event_add()</a></span> schedules the execution of the <span class="parameter" style="color:#2EACF9">event</span>    when the event specified in <span class="function"><a href="http://php.net/manual/zh/event.set.php" class="function">event_set()</a></span> occurs or in at least the time    specified by the <span class="parameter" style="color:#2EACF9">timeout</span> argument. If    <span class="parameter" style="color:#2EACF9">timeout</span> was not specified, not timeout is set. The    <span class="parameter" style="color:#2EACF9">event</span> must be already initalized by <span class="function"><a href="http://php.net/manual/zh/event.set.php" class="function">event_set()</a></span>    and <span class="function">{@link event_base_set()}</span> functions. If the    <span class="parameter" style="color:#2EACF9">event</span> already has a timeout set, it is replaced by    the new one.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-add-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event</span></dt>       <dd>        <p class="para">        Valid event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">timeout</span></dt>       <dd>        <p class="para">        Optional timeout (in microseconds).       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-add-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><a href="http://php.net/manual/zh/event.add.php" class="function">event_add()</a></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_add($event, $timeout = -1) {}

/**
*<div id="function.event-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_set</span> &mdash; <span class="dc-title">Prepare an event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/event.set.php" class="methodname" style="color:#CC7832">event_set</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$fd</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$events</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$callback</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$arg</span></span>   ] )</div>    <p class="para rdfs-comment">    Prepares the event to be used in <span class="function"><a href="http://php.net/manual/zh/event.add.php" class="function">event_add()</a></span>. The event    is prepared to call the function specified by the <span class="parameter" style="color:#2EACF9">callback</span>     on the events specified in parameter <span class="parameter" style="color:#2EACF9">events</span>, which    is a set of the following flags: <strong><span>EV_TIMEOUT</span></strong>,     <strong><span>EV_SIGNAL</span></strong>, <strong><span>EV_READ</span></strong>,     <strong><span>EV_WRITE</span></strong> and <strong><span>EV_PERSIST</span></strong>.   </p>    <p class="para">    If <strong><span>EV_SIGNAL</span></strong> bit is set in parameter <span class="parameter" style="color:#2EACF9">events</span>,    the <span class="parameter" style="color:#2EACF9">fd</span> is interpreted as signal number.   </p>   <p class="para">    After initializing the event, use <span class="function">{@link event_base_set()}</span> to    associate the event with its event base.   </p>   <p class="para">    In case of matching event, these three arguments are passed to the    <span class="parameter" style="color:#2EACF9">callback</span> function:     <dl>            <dt> <span class="parameter" style="color:#2EACF9">fd</span></dt>       <dd>        <p class="para">        Signal number or resource indicating the stream.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">events</span></dt>       <dd>        <p class="para">        A flag indicating the event. Consists of the following flags:        <strong><span>EV_TIMEOUT</span></strong>, <strong><span>EV_SIGNAL</span></strong>,         <strong><span>EV_READ</span></strong>, <strong><span>EV_WRITE</span></strong>        and <strong><span>EV_PERSIST</span></strong>.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">arg</span></dt>       <dd>        <p class="para">        Optional parameter, previously passed to <span class="function"><a href="http://php.net/manual/zh/event.set.php" class="function">event_set()</a></span>        as <span class="parameter" style="color:#2EACF9">arg</span>.       </p>      </dd>          </dl>    </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event</span></dt>       <dd>        <p class="para">        Valid event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">fd</span></dt>       <dd>        <p class="para">        Valid PHP stream resource. The stream must be castable to file        descriptor, so you most likely won&#039;t be able to use any of filtered        streams.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">events</span></dt>       <dd>        <p class="para">        A set of flags indicating the desired event, can be        <strong><span>EV_READ</span></strong> and/or <strong><span>EV_WRITE</span></strong>.        The additional flag <strong><span>EV_PERSIST</span></strong> makes the event        to persist until <span class="function"><a href="http://php.net/manual/zh/event.del.php" class="function">event_del()</a></span> is called, otherwise        the callback is invoked only once.        </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">callback</span></dt>       <dd>        <p class="para">        Callback function to be called when the matching event occurs.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">arg</span></dt>       <dd>        <p class="para">        Optional callback parameter.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-set-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><a href="http://php.net/manual/zh/event.set.php" class="function">event_set()</a></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 changelog" id="refsect1-function.event-set-changelog">   <h3 class="title">更新日志</h3>   <table class="doctable informaltable">         <thead>      <tr>       <th>版本</th>       <th>说明</th>      </tr>      </thead>      <tbody class="tbody">      <tr>       <td>0.0.4</td>       <td>        <strong><span>EV_SIGNAL</span></strong> support was added.       </td>      </tr>      </tbody>       </table>   </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_set($event, $fd, $events, $callback, $arg = null) {}

/**
*<div id="function.event-del" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_del</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_del</span> &mdash; <span class="dc-title">Remove an event from the set of monitored events</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-del-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/event.del.php" class="methodname" style="color:#CC7832">event_del</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event</span></span>    )</div>    <p class="para rdfs-comment">    Cancels the <span class="parameter" style="color:#2EACF9">event</span>.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-del-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event</span></dt>       <dd>        <p class="para">         Valid event resource.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-del-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><a href="http://php.net/manual/zh/event.del.php" class="function">event_del()</a></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_del($event) {}


/**
*<div id="function.event-buffer-new" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_new</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_new</span> &mdash; <span class="dc-title">Create new buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-new-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">resource</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_new</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$stream</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$readcb</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$writecb</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$errorcb</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$arg</span></span>   ] )</div>    <p class="para rdfs-comment">    Libevent provides an abstraction layer on top of the regular event API.    Using buffered event you don&#039;t need to deal with the I/O manually, instead    it provides input and output buffers that get filled and drained    automatically.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-new-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">stream</span></dt>       <dd>        <p class="para">        Valid PHP stream resource. Must be castable to file descriptor.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">readcb</span></dt>       <dd>        <p class="para">        Callback to invoke where there is data to read, or <span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.types.null.php" class="type NULL" style="color:#EAB766">NULL</a></span> if        no callback is desired.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">writecb</span></dt>       <dd>        <p class="para">        Callback to invoke where the descriptor is ready for writing,         or <span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.types.null.php" class="type NULL" style="color:#EAB766">NULL</a></span> if no callback is desired.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">errorcb</span></dt>       <dd>        <p class="para">        Callback to invoke where there is an error on the descriptor, cannot be        <span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.types.null.php" class="type NULL" style="color:#EAB766">NULL</a></span>.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">arg</span></dt>       <dd>        <p class="para">        An argument that will be passed to each of the callbacks (optional).       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-buffer-new-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_buffer_new()</strong></span> returns new buffered event resource    on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return resource|bool returns new buffered event resource on success or FALSE on error.*/
function event_buffer_new($stream, $readcb, $writecb, $errorcb, $arg = null) {}

/**
*<div id="function.event-buffer-free" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_free</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_free</span> &mdash; <span class="dc-title">Destroy buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-free-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_free</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    )</div>    <p class="para rdfs-comment">    Destroys the specified buffered event and frees all the resources    associated.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-free-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>          </dl>    </span>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return void*/
function event_buffer_free($bevent) {}

/**
*<div id="function.event-buffer-base-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_base_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_base_set</span> &mdash; <span class="dc-title">Associate buffered event with an event base</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-base-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_base_set</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event_base</span></span>    )</div>    <p class="para rdfs-comment">    Assign the specified <span class="parameter" style="color:#2EACF9">bevent</span> to the    <span class="parameter" style="color:#2EACF9">event_base</span>.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-base-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">event_base</span></dt>       <dd>        <p class="para">        Valid event base resource.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-buffer-base-set-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_buffer_base_set()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_buffer_base_set($bevent, $event_base) {}

/**
*<div id="function.event-buffer-priority-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_priority_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_priority_set</span> &mdash; <span class="dc-title">Assign a priority to a buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-priority-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_priority_set</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$priority</span></span>    )</div>    <p class="para rdfs-comment">    Assign a priority to the <span class="parameter" style="color:#2EACF9">bevent</span>.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-priority-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">priority</span></dt>       <dd>        <p class="para">        Priority level. Cannot be less than zero and cannot exceed maximum        priority level of the event base (see <span class="function">{@link event_base_priority_init()}</span>).        </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-buffer-priority-set-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_buffer_priority_set()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_buffer_priority_set($bevent, $priority) {}

/**
*<div id="function.event-buffer-write" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_write</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_write</span> &mdash; <span class="dc-title">Write data to a buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-write-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_write</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$data</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$data_size</span><span class="initializer"> = -1</span></span>   ] )</div>    <p class="para rdfs-comment">    Writes data to the specified buffered event. The data is appended to the    output buffer and written to the descriptor when it becomes available for    writing.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-write-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">data</span></dt>       <dd>        <p class="para">        The data to be written.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">data_size</span></dt>       <dd>        <p class="para">        Optional size parameter. <span class="function"><strong style="color:#CC7832">event_buffer_write()</strong></span> writes        all the <span class="parameter" style="color:#2EACF9">data</span> by default.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-buffer-write-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_buffer_write()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_buffer_write($bevent, $data, $data_size = -1) {}

/**
*<div id="function.event-buffer-read" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_read</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_read</span> &mdash; <span class="dc-title">Read data from a buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-read-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">string</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_read</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$data_size</span></span>    )</div>    <p class="para rdfs-comment">    Reads data from the input buffer of the buffered event.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-read-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">data_size</span></dt>       <dd>        <p class="para">        Data size in bytes.       </p>      </dd>          </dl>    </span>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return string*/
function event_buffer_read($bevent, $data_size) {}

/**
*<div id="function.event-buffer-enable" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_enable</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_enable</span> &mdash; <span class="dc-title">Enable a buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-enable-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_enable</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$events</span></span>    )</div>    <p class="para rdfs-comment">    Enables the specified buffered event.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-enable-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">events</span></dt>       <dd>        <p class="para">        Any combination of <strong><span>EV_READ</span></strong> and        <strong><span>EV_WRITE</span></strong>.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-buffer-enable-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_buffer_enable()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_buffer_enable($bevent, $events) {}

/**
*<div id="function.event-buffer-disable" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_disable</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_disable</span> &mdash; <span class="dc-title">Disable a buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-disable-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_disable</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$events</span></span>    )</div>    <p class="para rdfs-comment">    Disables the specified buffered event.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-disable-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">events</span></dt>       <dd>        <p class="para">        Any combination of <strong><span>EV_READ</span></strong> and        <strong><span>EV_WRITE</span></strong>.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-buffer-disable-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    <span class="function"><strong style="color:#CC7832">event_buffer_disable()</strong></span> returns <strong><span>TRUE</span></strong> on success or <strong><span>FALSE</span></strong> on error.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_buffer_disable($bevent, $events) {}

/**
*<div id="function.event-buffer-timeout-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_timeout_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_timeout_set</span> &mdash; <span class="dc-title">Set read and write timeouts for a buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-timeout-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_timeout_set</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$read_timeout</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$write_timeout</span></span>    )</div>    <p class="para rdfs-comment">    Sets the read and write timeouts for the specified buffered event.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-timeout-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">read_timeout</span></dt>       <dd>        <p class="para">        Read timeout (in seconds).       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">write_timeout</span></dt>       <dd>        <p class="para">        Write timeout (in seconds).       </p>      </dd>          </dl>    </span>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return void*/
function event_buffer_timeout_set($bevent, $read_timeout, $write_timeout) {}

/**
*<div id="function.event-buffer-watermark-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_watermark_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_watermark_set</span> &mdash; <span class="dc-title">Set the watermarks for read and write events</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-watermark-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_watermark_set</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$events</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$lowmark</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$highmark</span></span>    )</div>    <p class="para rdfs-comment">    Sets the watermarks for read and write events. Libevent does not invoke    read callback unless there is at least <span class="parameter" style="color:#2EACF9">lowmark</span> bytes    in the input buffer; if the read buffer is beyond the <span class="parameter" style="color:#2EACF9">highmark</span>,     reading is stopped. On output, the write callback is invoked whenever the    buffered data falls below the <span class="parameter" style="color:#2EACF9">lowmark</span>.    </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-watermark-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">events</span></dt>       <dd>        <p class="para">        Any combination of <strong><span>EV_READ</span></strong> and        <strong><span>EV_WRITE</span></strong>.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">lowmark</span></dt>       <dd>        <p class="para">        Low watermark.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">highmark</span></dt>       <dd>        <p class="para">        High watermark.       </p>      </dd>          </dl>    </span>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return void*/
function event_buffer_watermark_set($bevent, $events, $lowmark, $highmark) {}

/**
*<div id="function.event-buffer-fd-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_fd_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.1)</p><p class="refpurpose"><span class="refname">event_buffer_fd_set</span> &mdash; <span class="dc-title">Change a buffered event file descriptor</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-fd-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_fd_set</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$bevent</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$fd</span></span>    )</div>    <p class="para rdfs-comment">    Changes the file descriptor on which the buffered event operates.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-fd-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">bevent</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">fd</span></dt>       <dd>        <p class="para">        Valid PHP stream, must be castable to file descriptor.       </p>      </dd>          </dl>    </span>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return void*/
function event_buffer_fd_set($bevent, $fd) {}

/**
*<div id="function.event-buffer-set-callback" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_buffer_set_callback</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.4)</p><p class="refpurpose"><span class="refname">event_buffer_set_callback</span> &mdash; <span class="dc-title">Set or reset callbacks for a buffered event</span></p>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-buffer-set-callback-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_buffer_set_callback</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$readcb</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$writecb</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$errorcb</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$arg</span></span>   ] )</div>    <p class="para rdfs-comment">    Sets or changes existing callbacks for the buffered <span class="parameter" style="color:#2EACF9">event</span>.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-buffer-set-callback-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event</span></dt>       <dd>        <p class="para">        Valid buffered event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">readcb</span></dt>       <dd>        <p class="para">        Callback to invoke where there is data to read, or <span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.types.null.php" class="type NULL" style="color:#EAB766">NULL</a></span> if        no callback is desired.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">writecb</span></dt>       <dd>        <p class="para">        Callback to invoke where the descriptor is ready for writing,         or <span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.types.null.php" class="type NULL" style="color:#EAB766">NULL</a></span> if no callback is desired.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">errorcb</span></dt>       <dd>        <p class="para">        Callback to invoke where there is an error on the descriptor, cannot be        <span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.types.null.php" class="type NULL" style="color:#EAB766">NULL</a></span>.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">arg</span></dt>       <dd>        <p class="para">        An argument that will be passed to each of the callbacks (optional).       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-buffer-set-callback-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    成功时返回 <strong><span>TRUE</span></strong>， 或者在失败时返回 <strong><span>FALSE</span></strong>。   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_buffer_set_callback($bevent, $readcb, $writecb, $errorcb, $arg = null) {}


/**
*<div id="function.event-timer-new" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_timer_new</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.2)</p><p class="refpurpose"><span class="refname">event_timer_new</span> &mdash; <span class="dc-title">别名 <span class="function">{@link event_new()}</span></span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-timer-new-description">   <h3 class="title">说明</h3>   <p class="simpara">    此函数是该函数的别名：    <span class="function">{@link event_new()}</span>.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return resource|bool returns valid event base resource on success or FALSE on error.*/
function event_timer_new() {}

/**
*<div id="function.event-timer-set" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_timer_set</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.2)</p><p class="refpurpose"><span class="refname">event_timer_set</span> &mdash; <span class="dc-title">Prepare a timer event</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-timer-set-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>event_timer_set</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">resource</span> <span class="parameter" style="color:#2EACF9">$event</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.types.callable.php" class="type callable" style="color:#EAB766">callable</a></span> <span class="parameter" style="color:#2EACF9">$callback</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766"><a href="http://php.net/manual/zh/language.pseudo-types.php#language.types.mixed" class="type mixed" style="color:#EAB766">mixed</a></span> <span class="parameter" style="color:#2EACF9">$arg</span></span>   ] )</div>    <p class="para rdfs-comment">    Prepares the timer event to be used in <span class="function"><a href="http://php.net/manual/zh/event.add.php" class="function">event_add()</a></span>. The    event is prepared to call the function specified by the    <span class="parameter" style="color:#2EACF9">callback</span> when the event timeout elapses.   </p>   <p class="para">    After initializing the event, use <span class="function">{@link event_base_set()}</span> to    associate the event with its event base.   </p>   <p class="para">    In case of matching event, these three arguments are passed to the    <span class="parameter" style="color:#2EACF9">callback</span> function:    <dl>            <dt> <span class="parameter" style="color:#2EACF9">fd</span></dt>       <dd>        <p class="para">        Signal number or resource indicating the stream.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">events</span></dt>       <dd>        <p class="para">        A flag indicating the event. This will always be        <strong><span>EV_TIMEOUT</span></strong> for timer events.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">arg</span></dt>       <dd>        <p class="para">        Optional parameter, previously passed to        <span class="function"><strong style="color:#CC7832">event_timer_set()</strong></span> as <span class="parameter" style="color:#2EACF9">arg</span>.       </p>      </dd>          </dl>    </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.event-timer-set-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">event</span></dt>       <dd>        <p class="para">        Valid event resource.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">callback</span></dt>       <dd>        <p class="para">        Callback function to be called when the matching event occurs.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">arg</span></dt>       <dd>        <p class="para">        Optional callback parameter.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.event-timer-set-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    成功时返回 <strong><span>TRUE</span></strong>， 或者在失败时返回 <strong><span>FALSE</span></strong>。   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return void*/
function event_timer_set($event, $callback, $arg = null) {}

/**
 * <p>Checks if a specific event is pending or scheduled.</p>
 *
 * @param resource $event <p>
 * Valid event resource.
 * </p>
 * @param int $timeout [optional] <p>
 * Optional timeout (in microseconds).
 * </p>
 *
 * @return bool TRUE if event is not scheduled (added) FALSE otherwise
 */
function event_timer_pending($event, $timeout = -1) {}

/**
*<div id="function.event-timer-add" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_timer_add</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.2)</p><p class="refpurpose"><span class="refname">event_timer_add</span> &mdash; <span class="dc-title">别名 <span class="function"><a href="http://php.net/manual/zh/event.add.php" class="function">event_add()</a></span></span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-timer-add-description">   <h3 class="title">说明</h3>   <p class="simpara">    此函数是该函数的别名：    <span class="function"><a href="http://php.net/manual/zh/event.add.php" class="function">event_add()</a></span>.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_timer_add($event, $timeout = -1) {}

/**
*<div id="function.event-timer-del" class="refentry">  <div class="refnamediv">   <h1 class="refname">event_timer_del</h1>   <p class="verinfo">(PECL libevent &gt;= 0.0.2)</p><p class="refpurpose"><span class="refname">event_timer_del</span> &mdash; <span class="dc-title">别名 <span class="function"><a href="http://php.net/manual/zh/event.del.php" class="function">event_del()</a></span></span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.event-timer-del-description">   <h3 class="title">说明</h3>   <p class="simpara">    此函数是该函数的别名：    <span class="function"><a href="http://php.net/manual/zh/event.del.php" class="function">event_del()</a></span>.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.libevent.php">Libevent 函数</a></div></div>
 * @return bool returns TRUE on success or FALSE on error.*/
function event_timer_del($event) {}


// End of PECL libevent v.0.0.4

